﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default2.aspx.cs" Inherits="TeamProject.pics.WebForm1" %>
<%@ Register Assembly="GoogleMap" TagPrefix="RRR" Namespace="Reimers.Map" %>
<%@ Register TagPrefix="ACT" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" runat="server" style="height: 100%">
<head id="Head1" runat="server">
    <title>Tímový projekt </title>
    <link rel="Stylesheet" type="text/css" href="style.css" />
</head>
<body style="height: 100%; margin: 0">
    <form id="form1" runat="server" autocomplete="off" style="height: 100%">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div style="z-index: 1; left: 533px; top: 33px; position: absolute; height: 30px; width: 400px" >
        <asp:TextBox ID="TBSearchedTerm" runat="server" AutoCompleteType="Search" Width="290"></asp:TextBox>
        <asp:Button ID="Button1" UseSubmitBehavior="false" runat="server" Text="Hľadaj" />
        <ACT:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" ServicePath="AutoCompleteSearch.asmx"
            ServiceMethod="getSuggestions" TargetControlID="TBSearchedTerm" MinimumPrefixLength="1"
            CompletionSetCount="20" CompletionListCssClass="autocomplete_completionListElement"
            CompletionListItemCssClass="autocomplete_listItem" CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"
            CompletionInterval="5">
        </ACT:AutoCompleteExtender>
        
    </div>
    <div style="font-family: Tahoma; font-size: 11px;">
        <div>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <ACT:Accordion runat="server" ID="MyAccordion" FadeTransitions="true" FramesPerSecond="40"
                        HeaderSelectedCssClass="midHeader" HeaderCssClass="midHeader" ContentCssClass="miniBody"
                        BorderStyle="Solid" BorderWidth="1px" BorderColor="#ccccca" SuppressHeaderPostbacks="true"
                        Style="z-index: 1; left: 0px; top: 300px; position: absolute; height: 685px;
                        width: 380px">
                        <ContentTemplate>
                            content template
                        </ContentTemplate>
                        <Panes>
                            <ACT:AccordionPane ID="AccordionPane1" runat="server">
                                <Header>
                                    <asp:LinkButton ID="LinkButton1" runat="server" ForeColor="White">Práca s objektami</asp:LinkButton>
                                </Header>
                                <Content>
                                    <div style="padding: 5px; height: 300px">
                                        pridavanie novych objektov<br />
                                        editacia objektov
                                    </div>
                                </Content>
                            </ACT:AccordionPane>
                            <ACT:AccordionPane ID="AccordionPane3" runat="server">
                                <Header>
                                    <asp:LinkButton ID="LinkButton3" runat="server" ForeColor="White">Výber konceptov</asp:LinkButton>
                                </Header>
                                <Content>
                                    <div>

                                        <script type="text/javascript" src="GraphGear-1.4/swfobject/swfobject.js"></script>

                                        <div id="wrap">
                                            <div id="gearspace">
                                                <strong></strong>
                                            </div>

                                            <script type="text/javascript">
                                                // <![CDATA[

                                                var so = new SWFObject("GraphGear-1.4/GraphGear.swf", "graphgear", "360", "400", "8");
                                                so.addVariable("graphXMLFile", "graph.xml");
                                                so.addParam("allowScriptAccess", "always");
                                                so.addParam("scale", "noborder");
                                                so.addParam("salign", "tl");

                                                /*var koc= new String;
                                                koc=so.getAttribute("text");
                                                so.addParam("title",koc); */

                                                so.write("gearspace");


                                                // ]]>
                                            </script>

                                        </div>
                                    </div>
                                </Content>
                            </ACT:AccordionPane>
                            <ACT:AccordionPane ID="AccordionPane5" runat="server">
                                <Header>
                                    <asp:LinkButton ID="LinkButton5" runat="server" ForeColor="White">Prihlásenie</asp:LinkButton>
                                </Header>
                                <Content>
                                    <div style="padding: 5px">
                                        <div style="padding-bottom: 2px">
                                            <asp:Label ID="Label2" runat="server" Text="Prihlasovacie meno"></asp:Label>
                                        </div>
                                        <div style="padding-bottom: 2px">
                                            <asp:TextBox ID="TextBox1" runat="server" Width="160px"></asp:TextBox>
                                        </div>
                                        <div style="padding-bottom: 2px">
                                            <asp:Label ID="Label3" runat="server" Text="Heslo"></asp:Label>
                                        </div>
                                        <div style="padding-bottom: 2px">
                                            <asp:TextBox ID="TextBox2" runat="server" Width="160px" TextMode="Password"></asp:TextBox>
                                        </div>
                                        <div style="padding-bottom: 2px; text-align: center; padding-top: 5px">
                                            <asp:Button ID="Button2" runat="server" Text="Prihlásiť" OnClick="Login" />
                                        </div>
                                        <div style="padding-bottom: 2px">
                                            <asp:LinkButton ID="LBRegistracia" runat="server">Registrácia</asp:LinkButton>
                                        </div>
                                        <div style="padding-bottom: 2px">
                                            <asp:HyperLink ID="HyperLink2" runat="server">Zabudol som heslo</asp:HyperLink>
                                        </div>
                                    </div>
                                    <ACT:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="LBRegistracia"
                                        CacheDynamicResults="false" CancelControlID="BTNCancel" PopupControlID="PanelRegistration"
                                        BackgroundCssClass="modalBackground">
                                    </ACT:ModalPopupExtender>
                                </Content>
                            </ACT:AccordionPane>
                        </Panes>
                    </ACT:Accordion>
                </ContentTemplate>
            </asp:UpdatePanel>
            <asp:Panel ID="PanelRegistration" runat="server" CssClass="ModalWindow">
                <div style="width: 400px; padding: 20px; font-family: Tahoma; font-size: 11px; font-weight: bold">
                    <div style="text-align: center; font-size: 15px; padding-bottom: 30px; font-weight: normal">
                        Registrácia nového používateľa
                    </div>
                    <div>
                        <div style="float: left; padding-left: 20px">
                            Login
                        </div>
                        <div style="text-align: right">
                            <div>
                                <asp:TextBox ID="TBLogin" runat="server"></asp:TextBox>
                            </div>
                            <div>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" ForeColor="Black" Font-Size="11px"
                                    Font-Names="Tahoma" ValidationGroup="registration" ControlToValidate="TBLogin"
                                    runat="server" ErrorMessage="Povinný údaj"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                    <div>
                        <div style="float: left; padding-left: 20px">
                            Heslo
                        </div>
                        <div style="text-align: right">
                            <div>
                                <asp:TextBox ID="TBPassword" runat="server"></asp:TextBox>
                            </div>
                            <div>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" Font-Size="11px" Font-Names="Tahoma"
                                    ValidationGroup="registration" ControlToValidate="TBPassword" runat="server"
                                    ErrorMessage="Povinný údaj"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                    <div>
                        <div style="float: left; padding-left: 20px">
                            Zopakujte heslo
                        </div>
                        <div style="text-align: right">
                            <div>
                                <asp:TextBox ID="TBPassword2" runat="server"></asp:TextBox>
                            </div>
                            <div>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" Font-Size="11px" Font-Names="Tahoma"
                                    ValidationGroup="registration" ControlToValidate="TBPassword2" runat="server"
                                    ErrorMessage="Povinný údaj"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                    <div>
                        <div style="float: left; padding-left: 20px">
                            Meno
                        </div>
                        <div style="text-align: right">
                            <div>
                                <asp:TextBox ID="TBName" runat="server"></asp:TextBox>
                            </div>
                            <div>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" Font-Size="11px" Font-Names="Tahoma"
                                    ValidationGroup="registration" ControlToValidate="TBName" runat="server" ErrorMessage="Povinný údaj"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                    <div>
                        <div style="float: left; padding-left: 20px">
                            Priezvisko
                        </div>
                        <div style="text-align: right">
                            <div>
                                <asp:TextBox ID="TBSurname" runat="server"></asp:TextBox>
                            </div>
                            <div>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" Font-Size="11px" Font-Names="Tahoma"
                                    ValidationGroup="registration" ControlToValidate="TBSurname" runat="server" ErrorMessage="Povinný údaj"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                    <div>
                        <div style="float: left; padding-left: 20px">
                            Email
                        </div>
                        <div style="text-align: right">
                            <div>
                                <asp:TextBox ID="TBEmail" runat="server"></asp:TextBox>
                            </div>
                            <div>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" Font-Size="11px" Font-Names="Tahoma"
                                    ValidationGroup="registration" ControlToValidate="TBEmail" runat="server" ErrorMessage="Povinný údaj"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                    <div>
                        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                            <ContentTemplate>
                                <div style="padding-right: 20px; text-align: center">
                                    <asp:Button ID="BTNRegister" runat="server" Text="Registruj" ValidationGroup="registration"
                                        OnClick="Register" />
                                    <asp:Button ID="BTNCancel" runat="server" Text="Zrušiť" />
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                </div>
            </asp:Panel>
        </div>
    </div>
    <RRR:GoogleMap ID="GMap" runat="server" Zoom="2" Height="99%" Width="100%">
    </RRR:GoogleMap>
    </form>
</body>
</html>
